//index.js
//获取应用实例
const app = getApp()
const fetch = require('../../utils/fetch.js')
Component({
  data: {
    logo: ''
  },
  ready () {
  },
  router: {
    name: 'merchant',
    parent: 'index',
    index: 0,
  },
  methods: {
    upLogo () {
      wx.chooseImage({
        count: 1,
        sizeType: ['compressed'],
        success: e => {
          this.setData({
            logo: e.tempFilePaths[0]
          })
          // todo 上传图片
          // wx.uploadFile({
          //   url: '',
          //   filePath: e.tempFilePaths[0],
          //   name: '',
          //   success: e => {
          //
          //   }
          // })
        }
      })
    }
  }
})
